module.exports = function ($stateProvider,$urlRouterProvider) {
    $stateProvider
        // .state({
        //     name: 'default',
        //     url: '',
        //     template: require('../html/login.html')
        // })
        .state({
            name: 'audit',
            url: '/audit',
            template: require('../html/login.html')
        })
        .state({
            name: 'audit.register',
            url: '/register',
            template: require('../html/register.html')
        })
        .state({
            name: 'merchant',
            url: '/merchant',
            template: require('../html/merchant.html')
        })
        .state({
            name: 'merchant.home',
            url: '/home',
            template: require('../html/merchant.home.html')
        })
        .state({
            name: 'merchant.food',
            url: '/food',
            template: require('../html/merchant.food.html')
        })
        .state({
            name: 'merchant.order',
            url: '/order',
            template: require('../html/merchant.order.html')
        })
        .state({
            name:'merchant.info',
            url:'/info',
            template:require('../html/merchant.info.html')
        })
        .state({
            name:'merchant.info.update',
            url:'/update',
            template:require('../html/merchant.info.update.html')
        })
        ;

        $urlRouterProvider
        .when('','/audit')
        .otherwise('/audit')
        ;
}